@echo on
:Compile Stuff

cd %PROJDIR%\SQL\

call do-cleanup.bat

mkdir sp
cd sp
rem mkdir proc
rem cd..

rem xcopy st_proc\*.* /s /D:%DATE% sp\proc /Y

rem call stpb.bat sp\proc sp_procs

rem tools\prepsql.exe sp_procs.sql sp\prs_sp.sql

echo Merge script...
rem copy sp_header.sql /b + sp\prs_sp.sql /b sp\prs_sp.tmp >nul
rem copy sp\prs_sp.tmp sp\prs_sp.sql >nul

rem del sp\prs_sp.tmp >nul
rem del sp_header.sql

pause
copy sp_header.sql /b + Updates\next_upgrades.sql /b sp\prs_sp.sql >nul
pause





